import java.util.Vector;


public class Employee 
{
	private int id;	
	private String Name;
	private String Password;
	private boolean managerCheck;
	private int workTime;	
	 
	public Employee( int initid, String initName, String initPassword,boolean initManager,int initworkTime) {
		id=initid;		
		Name = initName;
		Password = initPassword;
		managerCheck = initManager;
		workTime = initworkTime;
	}
	
	public Employee(Vector<String> initreader){
		id = Integer.parseInt(initreader.get(0));
		Name=initreader.get(1);		
		Password=initreader.get(2);
	}		
	 
	//Accessors
	public String getName()              		 {return Name;}
	public String getPassword()        		 	 {return Password;}		 
	public int getid()   {return id;}
	public boolean getmanagerCheck()     		 {return managerCheck;}
	public int getworktime()					 {return workTime;}
	
    //Mutators
	public void setName(String newName)                 		{Name = newName;}
	public void setPassword(String newPassword)         		{Password = newPassword;}
	public void setNumAssignedReviews(int newId)       {id = newId;}
	public void setmanagerCheck(boolean newmanagerCheck)       {managerCheck = newmanagerCheck;}
	public void setworkTime(int newworkTime)					{workTime = newworkTime;}
	
	public String toString(){
		String s = "";
		s+= "Name: "+getName()+"\n";
		s+= "Password: "+getPassword()+"\n";
		s+= "Number of Assigned Reviews: "+getid()+"\n";
		return s;		
	}	
}
